package org.jfk.core.utils;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

import org.jfk.core.web.taglib.TextTag;

public class I18nUtil {
	static Properties pps;
	static{
		try {
				pps = new Properties();
				InputStream in = TextTag.class.getResourceAsStream("/message_zh_CN.properties"); 	
				pps.load(in);
		} catch (IOException e) {
			e.printStackTrace();
		}
		
	}
	
	public static String getValueByKey(String key){
		return pps.getProperty(key);
	};

}
